import request from '@/utils/request.js'

// 获取企业列表
// /base/pollutionsource/list
export function getEnterpriseList(data ={}) {
  return request({
    url: '/base/pollutionsource/list',
    method: 'get',
    params: data,
  })
}

//处理工艺列表
// /pollution/technology/list
export function getTechnologyList(data) {
  return request({
    url: '/pollution/technology/list',
    method: 'get',
    params: data,
  })
}

//处理工艺 添加
///pollution/technology/add
export function addTechnology(data) {
  return request({
    url: '/pollution/technology/add',
    method: 'post',
    data,
  })
}

// 处理工艺编辑
///pollution/technology/edit
export function editTechnology(data) {
  return request({
    url: '/pollution/technology/edit',
    method: 'post',
    data,
  })
}

// 处理工艺删除
///pollution/technology/remove/{ids}
export function deleteTechnology(ids) {
  return request({
    url: `pollution/technology/remove/${ids}`,
    method: 'get',
  })
}

// 监测方案列表
///pollution/monitoringscheme/list
export function getMonitoringSchemeList(data) {
  return request({
    url: '/pollution/monitoringscheme/list',
    method: 'get',
    params: data,
  })
}

// 监测方案 添加
///pollution/monitoringscheme/add
export function addMonitoringScheme(data) {
  return request({
    url: '/pollution/monitoringscheme/add',
    method: 'post',
    data,
  })
}

// 监测方案 编辑
////pollution/monitoringscheme/edit
export function ediMonitoringscheme(data) {
  return request({
    url: 'pollution/monitoringscheme/edit',
    method: 'post',
    data,
  })
}
//监测方案删除
// /pollution/monitoringscheme/remove/{ids}

export function removeMonitoringscheme(ids) {
  return request({
    url: `/pollution/monitoringscheme/remove/${ids}`,
    method: 'get',
  })
}

//监测机构列表
///pollution/monitoringorganization/list
export function listMonitoringorganization(query) {
  return request({
    url: '/pollution/monitoringorganization/list',
    method: 'get',
    params: query
  })
}

//监测机构添加
///pollution/monitoringorganization/add
export function addMonitoringorganization(data) {
  return request({
    url: '/pollution/monitoringorganization/add',
    method: 'post',
    data: data
  })
}

//监测机构修改
///pollution/monitoringorganization/edit
export function editMonitoringorganization(data) {
  return request({
    url: '/pollution/monitoringorganization/edit',
    method: 'post',
    data: data
  })
}
//监测机构修改
///pollution/monitoringorganization/remove/{ids}
export function removeMonitoringorganization(ids) {
  return request({
    url: '/pollution/monitoringorganization/remove/' + ids,
    method: 'get'
  })
}